package com.alan.swagger2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Alan liu
 * @Date: 2019/1/21 17:20
 * @Description: TestController
 */
@RestController
@RequestMapping("test")
public class TestController {
    /**
     * hello测试
     * @Author Alan liu
     * @Date 17:21 2019/1/21
     * @param hello 信息
     * @return java.lang.String
     **/
    @GetMapping("hello")
    public String hello(@RequestParam("hello") String hello){
        return "HI: "+hello;
    }


    /**
     * hello测试22
     * @Author Alan liu
     * @Date 17:21 2019/1/21
     * @param hello 信息22
     * @return java.lang.String hello222
     **/
    @GetMapping("hello2")
    public String hello2(@RequestParam("hello") String hello){
        return "HI: "+hello;
    }
}
